package com.demo.validate;

import java.util.regex.Pattern;

/**
 * 邮编校验
 *
 * @author sdyang
 * @create 2019-01-22 17:27
 **/
public class PostCodeValidate extends FieldDataValidate {

    @Override
    public boolean check(Object object) {
        String reg = "[1-9]\\d{5}";
        return Pattern.matches(reg, object.toString());
    }
}
